Smartling\Helpers\GutenbergBlockHelper C

Total Complexity 111
Dependencies 22
Dependents 5
Total lines 588
Lines of code 439
Logical lines of code 266
Comment lines 40
Methods 28
Properties 5

Methods 28

Method Rating Maintainability Complexity Lines of code
sortChildNodesContent()
A
47 8 39
applyDownloadRules()
A
48 8 28
getValue()
A
53 8 22
applyPostTranslationReplacers()
S
49 7 28
isPossibleJson()
S
57 7 16
replacePreTranslateBlockContent()
S
52 6 23
processTranslation()
S
55 6 20
renderGutenbergBlock()
S
53 6 20
replaceAttributes()
S
54 5 20
loadExternalDependencies()
S
57 5 16
placeBlock()
S
50 4 29
fixAttributeTypes()
S
61 5 12
register()
S
56 4 18
replacePostTranslateBlockContent()
S
57 4 16
processAttributes()
S
57 3 17
renderTranslatedBlockNode()
S
57 3 16
processString()
S
59 3 14
parseBlocks()
S
61 3 12
processTranslationChunks()
S
62 3 11
registerFilters()
S
60 2 15
processTranslationAttributes()
S
61 2 12
getJson()
S
65 2 8
setValue()
S
68 2 7
getPostContentBlocks()
S
80 1 3
unpackData()
S
80 1 3
packData()
S
80 1 3
hasBlocks()
S
78 1 3
__construct()
S
67 1 8